package cn.hyy.FVOnline.entity;

import java.io.Serializable;
import java.util.List;

public class Goods implements Serializable {

    //id
    private Integer id;
    //商品名称
    private String goodsname;
    //图片路径
    private String hsPath;
    //所属商品id
    private Integer shopid;
    //商品描述
    private String details;
    //商品分类
    private String type;
    //价格
    private Double price;
    //库存
    private Integer number;
    //销量
    private Integer sellnum;
    //商品状态
    private Integer state;

    private Shop shop;

    private List<Evaluate> evaluates;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public String getHsPath() {
        return hsPath;
    }

    public void setHsPath(String hsPath) {
        this.hsPath = hsPath;
    }

    public Integer getShopid() {
        return shopid;
    }

    public void setShopid(Integer shopid) {
        this.shopid = shopid;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getSellnum() {
        return sellnum;
    }

    public void setSellnum(Integer sellnum) {
        this.sellnum = sellnum;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public List<Evaluate> getEvaluates() {
        return evaluates;
    }

    public void setEvaluates(List<Evaluate> evaluates) {
        this.evaluates = evaluates;
    }


    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsname='" + goodsname + '\'' +
                ", hsPath='" + hsPath + '\'' +
                ", shopid=" + shopid +
                ", details='" + details + '\'' +
                ", type='" + type + '\'' +
                ", price=" + price +
                ", number=" + number +
                ", sellnum=" + sellnum +
                ", state=" + state +
                ", shop=" + shop +
                ", evaluates=" + evaluates +
                '}';
    }
}
